package com.hulk.other.springStudy.service;

import java.util.Map;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;


@Service
public class PersionServiceImpl2 implements PersionService2 {

	private String name;
	
	public PersionServiceImpl2(String name){
		this.name = name;
	}
	
	public PersionServiceImpl2() {}

	@Override
	public String savePersion(Map map) throws Exception {
		System.out.println("savePersion========"+map);
//		if(true)throw new Exception();
		return name;
	}

	@Override
	public void delPersion(Map map) {
		System.out.println("delPersion========"+map);

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
